package com.luobd.base.service;

import com.luobd.base.Base64Captcha;
import com.luobd.base.ResponseData;

public interface IAuthService {


     String TOKEN_PREFIX = "user::token::";


     String CAPTCHA_PREFIX = "captcha::";


    ResponseData<String> auth(String username, String password);


    ResponseData<Boolean> logout();



    String getCacheTokenByUserId(Long userId);


    ResponseData<Base64Captcha> getCaptchaBase64();



    boolean checkCaptcha(String id, String captcha);

}
